import request from '../utils/request'
// 公共的接口
// 校验验证码接口
export const checkVeriApi = function (veri) { //veri 组件传入的验证码
  return request("/VueHandler/AdminLoginAndRegHandler?action=checkVerification", { veri: veri }, "get")
}
// 登录接口
export const loginApi = function (params) { //{username:this.username}
  return request("/VueHandler/AdminLoginAndRegHandler?action=login", params, "post")
}
// 退出登录
export const quitLogin = function () {
  return request("/VueHandler/AdminHandler?action=quit", {}, "get")
}
//获取用户信息
export const getUserApi = function () {
  return request("/VueHandler/AdminHandler?action=returnuserinfo", {}, "post")
}